//
//  LGProfileController.m
//  MindBox
//
//  Created by MS on 15-12-31.
//  Copyright (c) 2015年 Lemon. All rights reserved.
//

#import "LGProfileController.h"
#import "LoginController.h"
#import "LGProfileDetailController.h"
@interface LGProfileController ()

@end

@implementation LGProfileController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor =[UIColor colorWithRed:0.20f green:0.82f blue:0.41f alpha:1.00f];
    self.navigationController.navigationBar.hidden =YES;
    
    [self login];
    
}

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self login];
    
}


-(void)login
{
    LGProfileDetailController * vc = [[LGProfileDetailController alloc] init];
    
    [self.navigationController pushViewController:vc animated:YES];

}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.stateSmarkView.alpha = 0;

}

-(void)viewDidDisappear:(BOOL)animated
{
    
    [super viewDidDisappear:animated];
    
    if (self.tabBarController.selectedIndex!=3) {
        self.stateSmarkView.alpha = 1;
    }
   
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
